package cn.ricecode.springdatamongo.repository;

import cn.ricecode.springdatamongo.entity.User;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author LiuZhulan
 */
public interface UserRepository extends MongoRepository<User,Integer> {

    List<User> findUsersByUsername(String username);
}
